home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-11-21 | 2.2 KB | 56 lines | [TEXT/MPS ] |
-
- PlayTool
-
- PlayTool is an MPW tool which plays sounds. It was written so that my Macintosh
- could tell me when it's done compiling those big C++ programs that seem to take
- forever and ever and ever to finish.
-
- PlayTool is invoked in the following format:
-
- PlayTool [-a] [sounds...]
-
- The "sounds..." are a list of sound ('snd ') resource names. Any sounds in the System
- file will work, for example. If you simply give PlayTool a list of sounds, it will pick
- one at random and play it. If you include the "-a" option, it will play all the sounds
- you give it in turn.
-
- If you don't give PlayTool a list of sounds, it will look inside itself and use any
- sound resources it finds to make up the list. It will then play one of these sounds,
- or all of them (-a).
-
- You can make a new tool to announce some situation (compile complete, time for
- lunch, etc. etc.). Just make a copy of PlayTool with a new name, then add sound
- resources to it. When you invoke it in MPW, it will pick one of the sounds you've
- added and play it.
- _____________________________________________________________________
-
-
- BuildSucceeded/BuildFailed/BuildProgram
-
- Included with PlayTool are two variations on it and a replacement for MPW 3.2's
- BuildProgram script.
-
- BuildSucceeded & BuildFailed are two tools which say appropriate things for the
- situations they're named after.
-
- BuildProgram is a slightly modified version of MPW 3.2's BuildProgram script,
- which determines if the build was successfull, and then executes one of the two
- variables {BuildSuccess} or {BuildFailure}. With this version of the BuildProgram
- script, you can have it do whatever you like on success or failure.
-
- If you want to use the BuildSucceeded and BuildFailed tools to tell you when the
- build is done, you need to include the following lines in your UserStartup file:
-
- Set BuildSuccess BuildSucceeded
- Export BuildSuccess
- Set BuildFailure BuildFailed
- Export BuildFailure
-
- And, of course, you need to put BuildProgram in the MPW Scripts folder, replacing
- the original that came with MPW, and put BuildSucceeded and BuildFailed in the
- Tools folder.
- _____________________________________________________________________
-
-
- Enjoy,
- Harry Chesley